import java.util.*;

public class SuperManager {

    ExamRepository examRepository = new ExamRepository();

    public void superManagerSelection(String input){
        switch (input){
            case "1.1.1":
                examRepository.queryAllStudents();
                break;
            case "1.1.2":
                examRepository.queryStudentByName();
                break;
            case "1.1.3":
                examRepository.queryStudentByTeacher();
                break;
            case "1.2.1":
                examRepository.queryAllClasses();
                break;
            case "1.2.2":
                examRepository.queryClassByName();
                break;
            case "1.2.3":
                examRepository.queryClassByTeacherName();
                break;
            case "1.3.1":
                examRepository.queryAllTeachers();
                break;
            case "1.3.2":
                examRepository.queryTeacherByName();
                break;
            case  "2.1":
                examRepository.addStudent();
                break;
            case  "2.2":
                examRepository.addClass();
                break;
            case "3.1":
                examRepository.updateScore();
                break;
            case "4.1":
                examRepository.deleteStudent();
                break;
            case "4.2":
                examRepository.deleteClass();
                break;
            case "4.3":
                examRepository.deleteTeacher();
                break;
            default:
                System.out.println("This command is illegal!");
                break;
        }
    }
}
